import request from '@/utils/request'

// app列表查询
export function fetchList() {
    return request({
      url:'/auth/app/list',
      method:'get'
    })
}

// 新增app
export function addApp(data) {
  return request({
    url:'/auth/app/create',
    method:'post',
    data: data
  })
}

// 编辑app
export function updateApp(data) {
  return request({
    url:'/auth/app/update',
    method:'post',
    data: data
  })
}

// 删除app
export function deleteApp(clientId) {
    return request({
      url:'/auth/app/delete/' + clientId,
      method:'post'
    })
}